<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page errorPage="error.jsp" %>
<html>
    <head>
        <title>Регистрация</title>
    </head>
    <body>
        <form method="POST" action="Registration">
            <table border="0">
                <tr>
                    <td>Логин:</td>
                    <td><input type="text" name="username"></td>
                </tr>
                <tr>
                    <td>Пароль:</td>
                    <td><input type="password" name="password1"></td>
                </tr>
                <tr>
                    <td>Пароль ещё раз:</td>
                    <td><input type="password" name="password2"></td>
                </tr>
            </table>
            <input type="submit" value="отправить">
        </form>
        <%
            String errorMessage = (String)request.getSession().getAttribute("registration_error");
            if (errorMessage != null) {
                %>
        <i><%=errorMessage%></i>
                <%
            }
        %>
    </body>
</html>